package cn.edu.service.impl;

import cn.edu.dao.IProvince;
import cn.edu.dao.impl.IProvinceImpl;
import cn.edu.entity.Province;
import cn.edu.service.ProvinceService;

import java.util.List;

public class ProvinceServiceImpl implements ProvinceService {
    IProvince province;
    @Override
    public List<Province> getProvinces() {
        province = new IProvinceImpl();
        try {
            return province.getProvinces();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
